Next:
Ion command lines
, Previous:
Smarty template - notes
, Up:
Index
Twig template - notes
{# call variable #}
{{
name
}}
{# call file in twig folder #}
{{
assets
(
'path/to/file/folder'
)
}}
<
link
href
=
"
{{
assets
(
'_assets/css/style.css'
)
}}
"
>
{# app path abosulte https://www.app.com #}
{{
appUrl
(
)
}}
{{
appUrl
(
'index/add'
)
}}
{# create ion token input for form or page #}
{{
ionToken
(
'form_name'
)
}}
{# call translate variable from tanlaste file #}
{# main file as folder name like web folder -> web.php file #}
{{
_t
.
trans
(
'msg'
)
}}
// call translate in js
let
_t
=
JSON
.
parse
(
'{{ tJson|raw }}'
)
;